package de.guice.prototype;

import com.google.inject.Guice;
import com.google.inject.Injector;

public class HeroBean {

	String whoAmI;
	
	public void whoAreYou()
	{
		Injector injector = Guice.createInjector(new HeroModule());
		
		Hero hero = injector.getInstance(Hero.class);
		
		whoAmI = hero.sayHello();
			
	}

	public String getWhoAmI() {
		return whoAmI;
	}

	public void setWhoAmI(String whoAmI) {
		this.whoAmI = whoAmI;
	}
	
	
	
}
